package cn.net.ait.hr.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.guiceside.persistence.entity.IdEntity;
import org.guiceside.persistence.entity.Tracker;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

/**
 * @author liyaqiao <a href='mailto:liyaqiao@hotmail.com'>email</a>
 * @since JDK1.6
 * @version 1.0 2009-2-26
 *
 **/
@Entity
@Table(name = "HR_DUTY")
public class HrDuty extends IdEntity implements Tracker{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Long id;
	
	private String dutyId ;
	
	private String dutyNameZh;
	
	private String dutyNameEn;
	
	private String dutyNameKo;
	
	private Long displayOrder;
	
	private Date created;

	private String createdBy;

	private Date updated;

	private String updatedBy;

	private String useYn;
	
	
	@Column(name = "CREATED", updatable = false)
	public Date getCreated() {

		return created;
	}

	@Column(name = "CREATEDBY", updatable = false)
	public String getCreatedBy() {

		return createdBy;
	}

	@Column(name = "UPDATED")
	public Date getUpdated() {

		return updated;
	}

	@Column(name = "UPDATEDBY")
	public String getUpdatedBy() {

		return updatedBy;
	}

	public void setCreated(Date created) {
		this.created = created;

	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;

	}

	public void setUpdated(Date updated) {
		this.updated = updated;

	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;

	}

	@Column(name = "USE_YN")
	public String getUseYn() {
		return useYn;
	}

	public void setUseYn(String useYn) {
		this.useYn = useYn;
	}

	@Id
	@GeneratedValue(generator = "SEQ_HR_DUTY")
	@GenericGenerator(name = "SEQ_HR_DUTY", strategy = "seqhilo", parameters = { @Parameter(name = "sequence", value = "SEQ_HR_DUTY") })
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="DUTY_ID")
	public String getDutyId() {
		return dutyId;
	}

	public void setDutyId(String dutyId) {
		this.dutyId = dutyId;
	}

	@Column(name="DUTY_NAME_ZH")
	public String getDutyNameZh() {
		return dutyNameZh;
	}

	public void setDutyNameZh(String dutyNameZh) {
		this.dutyNameZh = dutyNameZh;
	}

	@Column(name="DUTY_NAME_EN")
	public String getDutyNameEn() {
		return dutyNameEn;
	}

	public void setDutyNameEn(String dutyNameEn) {
		this.dutyNameEn = dutyNameEn;
	}

	@Column(name="DUTY_NAME_KO")
	public String getDutyNameKo() {
		return dutyNameKo;
	}

	public void setDutyNameKo(String dutyNameKo) {
		this.dutyNameKo = dutyNameKo;
	}

	@Column(name="DISPLAY_ORDER")
	public Long getDisplayOrder() {
		return displayOrder;
	}

	public void setDisplayOrder(Long displayOrder) {
		this.displayOrder = displayOrder;
	}
	
	
}
